package com.hifar.test.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 数据项模型
 * 包含具体的业务数据
 */
public class DataItem {
    
    /**
     * 组织信息
     */
    @JsonProperty("ORGANIZATION_INFO")
    private SyncDeptInfo organizationInfo;
    
    /**
     * 员工信息
     */
    @JsonProperty("EMPLOYEE")
    private SyncUserInfo employee;
    
    public DataItem() {}
    
    public DataItem(SyncDeptInfo organizationInfo) {
        this.organizationInfo = organizationInfo;
    }
    
    public DataItem(SyncUserInfo employee) {
        this.employee = employee;
    }
    
    // Getters and Setters
    public SyncDeptInfo getOrganizationInfo() {
        return organizationInfo;
    }
    
    public void setOrganizationInfo(SyncDeptInfo organizationInfo) {
        this.organizationInfo = organizationInfo;
    }
    
    public SyncUserInfo getEmployee() {
        return employee;
    }
    
    public void setEmployee(SyncUserInfo employee) {
        this.employee = employee;
    }
    
    @Override
    public String toString() {
        return "DataItem{" +
                "organizationInfo=" + organizationInfo +
                ", employee=" + employee +
                '}';
    }
}
